import java.util.Scanner;

/**
 * @Author 12629
 * @Description：
 */
public class Test {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while (scan.hasNextInt()) {
            int age = scan.nextInt();
            System.out.println(age);
        }
    }

    public static void main5(String[] args) {
        /*System.out.println("输出且换行！");
        System.out.print("不换行");
        System.out.printf("%d\n",10);
        //你的IDEA没有设置快键键  */
        //导入这个包【include】
        Scanner scan = new Scanner(System.in);
        System.out.println("输入一个年龄：");
        int age = scan.nextInt();//读入一个int类型的整数
        System.out.println("年龄："+age);

        scan.nextLine();//注意回车

        System.out.println("请输入你的姓名：");
        String name = scan.nextLine();//nextLine 读入一行  next是遇到空格结束！
        System.out.println("姓名："+name);

        System.out.println("请输入你的工资：");
        float salary = scan.nextFloat();
        System.out.println("工资："+salary);
        scan.close();//可以认为scan是一个资源

    }

    public static void main4(String[] args) {
        /*int sum = 0;
        for (int i = 1; i <= 10; i++) {
            sum += i;
        }
        System.out.println(sum);*/
        //1!+.....+5!
       /* int sum = 0;
        for (int j = 1; j <= 5; j++) {
            int ret = 1;
            for (int i = 1; i <= j; i++) {
                ret *= i;
            }
            //System.out.println(ret);
            sum += ret;
        }
        System.out.println(sum);*/

        //至少会执行一次这个代码！！！
        /*int a = 0;
        do {
            System.out.println(a);
        }while (a != 0);*/

    }


    public static void main2(String[] args) {
        /*int num = 1;
        while (num <= 10) {
            System.out.println(num);
            num++;
        }*/
        /*while (true) {

        }*/

        /*int num = 1;
        int ret = 0;
        while (num <= 100) {
            ret = ret + num;
            num++;
        }
        System.out.println(ret);
*/
        /*int n = 1;
        int ret = 1;//0
        while (n <= 5) {
            ret = ret * n;
            n++;
        }
        System.out.println(ret);*/

        //1!+2!+3!+4!+5!
        /*int k = 1;
        int sum = 0;
        while (k <= 5) {
            int n = 1;
            int ret = 1;//0
            while (n <= k) {
                ret = ret * n;
                n++;
            }
            //System.out.println(ret);
            k++;
            sum = sum + ret;
        }
        System.out.println(sum);*/
        //break就是提前结束循环！！！！ 剩下多少趟都不会执行
        /*int n = 1;
        while (n <= 5) {
            if(n == 2) {
                break;
            }
            System.out.println(n);
            n++;
        }*/
        //找到 100 - 200 中第一个 3 的倍数
        /*int i = 100;
        while (i <= 200) {
            if(i % 3 == 0) {
                System.out.println(i);
                break;
            }
            i++;
        }*/
        //continue 的功能是跳过这次循环, 立即进入下次循环.
        /*int n = 1;
        while (n <= 5) {
            if(n == 2) {
                n++;
                continue;
                //continue后面的内容 不会被执行
            }
            System.out.println(n);
            n++;
        }*/
        //求100-200之间 既能被3整除 也能被4整除的数字 要求：使用continue
        /*int i = 100;
        while (i <= 200) {
            if(i % 12 != 0) {
                i++;
                continue;
            }
            System.out.println(i);
            i++;
        }*/

    }
    public static void main1(String[] args) {
        //不能做switch参数的数据类型有哪些？ 基本数据类型当中：float  double  long
        int a = 1;
        switch (a) {
            case 1:
                //int num = 10;
                System.out.println("1");
                break;
            case 2:
                System.out.println("2");
                break;
            case 3:
                System.out.println("3");
                break;
            default:
                break;
        }

        /*String str = "hello";
        switch (str) {
            case "abc":
                System.out.println("1");
                //break;
            case "hello":
                System.out.println("2");
                break;
            default:
                break;
        }*/

        /*boolean flg = true;
        switch (flg) {
            case true:
                break;
        }*/


       /* int x = 20;
        int y = 10;
        if (x == 10) {
            if (y == 10) {
                System.out.println("aaa");
            }else {
                System.out.println("bbb");
            }
        }*/

       /* for (int year =1000;year <= 2000; year++) {
            if(year % 100 == 0) {
                if(year % 400 == 0) {
                    System.out.println(year+" is 闰年！");
                }
            }else {
                if(year % 4 == 0) {
                    System.out.println(year+" is 闰年！");
                }
            }
        }*/

       /* System.out.println("aaaa");
        System.out.println("cccc");
        System.out.println("bbbb");
*/
        /*int num = 10;
        if(num % 2 == 0) {
            System.out.println("偶数！");
        }else {
            System.out.println("奇数！");
        }*/
    }
}


